package reflect;

import java.util.Arrays;

/**
 * JDK1.5之后，Java推出了一个特性:变长参数
 */
public class ArgsDemo {
    public static void main(String[] args) {
        doSome();
        doSome("a");
        doSome("a","b");
        doSome("a","b","c","b","c","b","c","b","c","b","c");

    }
    public static void doSome(String... args){
        System.out.println(args.length);
        System.out.println(Arrays.toString( args));
    }
}
